<!DOCTYPE html>
<html>
<head>
    <title>Stock API Test</title>
    <script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
</head>
<body>
    <h1>Stock API Test</h1>
    <div id="result"></div>

    <script>
        async function testAPI() {
            try {
                const response = await axios.get('https://suggest3.sinajs.cn/suggest/key=600', {
                    headers: {
                        'Referer': 'https://finance.sina.com.cn'
                    }
                });
                document.getElementById('result').innerText = JSON.stringify(response.data, null, 2);
            } catch (error) {
                document.getElementById('result').innerText = 'Error: ' + error.message;
            }
        }

        testAPI();
    </script>
</body>
</html> 